<?php include COMMON_PATH.'/index/header.html' ?>

<div class="pr-add-wrap main-content">
    <div class="pr-top-wrap clearfix">
        <div class="left-title">人员列表</div>
        <span>培训设置</span>
    </div>
    <form class="layui-form pr-main-content clearfix">
        <div class="left-box fl">
            <div class="s-check-wrap">
                <input type="checkbox" name="s-checkbox" lay-filter="s-checkbox" lay-skin="primary" title="全选">
            </div>
            <div id="search-wrap">
                <div class="layui-inline">
                    <input class="ser-input" type="text" placeholder="搜索员工">
                </div>
                <span id="search_submit" class="">搜索</span>
            </div>
            <h3 class="bot-title">企业人员列表</h3>
            <ul id="staff-company" class="staff-member-wrap" style="overflow: auto; height:640px;">
                <?php foreach($users['lists'] as $v):?>
                <li data-udid="<?=$v['udid']?>"><?=$v['nickname']?>&nbsp;&nbsp;<?=$v['section']?></li>
                <?php endforeach;?>
            </ul>
        </div>
        <div class="right-box fr">
            <div class="clearfix item-wrap">
                <b>课程名称：</b>
                <div class="layui-block item"><input class="layui-input" name="name" type="text" placeholder="培训名称">
                </div>
            </div>
            <div class="clearfix item-wrap">
                <b>课程分类：</b>
                <div class="layui-block item">
                    <select class="layui-input" name="gid" lay-verify="">
                        <?php foreach($group['lists'] as $v):?>
                        <option value="<?=$v['gid']?>"><?=$v['name']?></option>
                        <?php endforeach;?>
                    </select>
                </div>
            </div>
            <div class="clearfix item-wrap">
                <b>开播日期：</b>
                <div class="layui-inline item"><input class="layui-input" name="date" id="advance_date"
                                                      readonly="readonly" placeholder="开播日期" type="text"></div>
            </div>
            <div class="clearfix item-wrap">
                <b>开播时间：</b>
                <div class="layui-inline item"><input class="layui-input" name="start_time" type="text"
                                                      id="advance_time_start" readonly="readonly" placeholder="开始时间"/>
                </div>&nbsp;&nbsp;至&nbsp;&nbsp;<div class="layui-inline item"><input class="layui-input"
                                                                                     readonly="readonly" name="end_time"
                                                                                     type="text" id="advance_time_end"
                                                                                     placeholder="结束时间"/></div>
            </div>
            <div class="clearfix item-wrap">
                <b>培训对象：</b>
                <div class="staff-out-wrap">
                    <div class="layui-block item">
                        <textarea data-notify="" data-phone="" id="staff-obj" class="layui-textarea disabled"
                                  readonly="" placeholder="从左侧选择培训对象"></textarea>
                    </div>
                    <div class="layui-block item">
                        <textarea name="section" id="staff-obj-add" class="layui-textarea"
                                  placeholder="手动添加培训对象"></textarea>
                    </div>
                </div>
            </div>
            <div class="clearfix item-wrap">
                <b>培训人数：</b>
                <div class="layui-block item"><input class="layui-input" name="number" type="text" placeholder="培训人数">
                </div>
            </div>
            <div class="clearfix item-wrap">
                <b>房间密码：</b>
                <div class="layui-block item"><input class="layui-input" name="password" autocomplete="new-password"
                                                     type="password" placeholder="无需密码可不填写"></div>
            </div>
            <div class="clearfix item-wrap">
                <b>课件上传：</b>
                <div class="layui-block item clearfix" style="margin-top: 0;">
                    <a href="javascript:void(0);" id="upload_btn_wrap" style="float: left; "><i
                            class="icon iconfont icon-lianjie"></i>添加图片&nbsp;|
                        <input id="upload_btn" multiple="multiple" type="file" accept="image/jpg,image/jpeg,image/png">
                    </a>
                    <span class="fl">已上传<i id="upload-num">0</i></span>
                    <i class=" layui-icon layui-anim layui-anim-rotate layui-anim-loop loopNone fl"
                       style="height: 44px;line-height: 44px; margin-left:8px; vertical-align: top;overflow: hidden;"></i>
                    <span class="fl" style=" overflow: hidden; margin-left: 30px;">图片命名规律：幻灯片1.jpg，幻灯片2.jpg...，每张图片不能超过2M，每次最多可选20张</span>
                    <ul data-path="" data-file="" class="pic-list clearfix" style="clear: both;"></ul>
                </div>
            </div>

            <div class="clearfix item-wrap">
                <b>课程封面：</b>
                <div class="layui-block item pic-cd-wrap" style="margin-top: 0;">
                    <span data-backdrop = '"<?=json_encode($backdrop)?>"' class="cover-choose">
                        <i class="icon iconfont icon-lianjie"></i>封面选择
                    </span>
                    <img class="pic-cd" src="<?=$backdrop[0]['image']?>" data-bid="<?=$backdrop[0]['bid']?>" alt="">
                </div>
            </div>

            <div class="clearfix item-wrap">
                <b>课后考卷：</b>
                <div class="layui-block item">
                    <input type="radio" name="volume" value="0" title="不需要" checked="">
                    <input type="radio" name="volume" value="1" title="需要">
                </div>
            </div>
            <div class="clearfix item-wrap">
                <b>直播分享：</b>
                <div class="layui-block item">
                    <input type="radio" name="share" value="1" title="允许" checked>
                    <input type="radio" name="share" value="0" title="禁止">
                </div>
            </div>
            <div class="clearfix item-wrap">
                <b>直播课件：</b>
                <div class="layui-block item">
                    <input type="radio" name="view" value="1" title="允许" checked>
                    <input type="radio" name="view" value="0" title="禁止">
                </div>
            </div>

            <div class="clearfix item-wrap">
                <b>课程简介：</b>
                <div class="layui-block item"><textarea name="introduction" id="" placeholder="课程简介"
                                                        class="layui-textarea"></textarea></div>
            </div>
            <span lay-submit lay-filter="submit" class="fr btn-submit">提交</span>
        </div>

        <input class="prior_type" data-imgsrc="<?=$imgPath?>"  type="hidden" value="1">
    </form>
</div>
<?php include COMMON_PATH.'/index/footer.html' ?>
<script type="text/javascript" src="/index/js/prior_edit.js"></script>
<script>
    navActive(5);
    var backdrop = '"<?=json_encode($backdrop)?>"';

</script>
</html>



















